package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Courses2Mapper;
import com.ruoyi.system.domain.Courses2;
import com.ruoyi.system.service.ICourses2Service;

/**
 * 成绩表2Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class Courses2ServiceImpl implements ICourses2Service 
{
    @Autowired
    private Courses2Mapper courses2Mapper;

    /**
     * 查询成绩表2
     * 
     * @param courseId 成绩表2主键
     * @return 成绩表2
     */
    @Override
    public Courses2 selectCourses2ByCourseId(Long courseId)
    {
        return courses2Mapper.selectCourses2ByCourseId(courseId);
    }

    /**
     * 查询成绩表2列表
     * 
     * @param courses2 成绩表2
     * @return 成绩表2
     */
    @Override
    public List<Courses2> selectCourses2List(Courses2 courses2)
    {
        return courses2Mapper.selectCourses2List(courses2);
    }

    /**
     * 新增成绩表2
     * 
     * @param courses2 成绩表2
     * @return 结果
     */
    @Override
    public int insertCourses2(Courses2 courses2)
    {
        return courses2Mapper.insertCourses2(courses2);
    }

    /**
     * 修改成绩表2
     * 
     * @param courses2 成绩表2
     * @return 结果
     */
    @Override
    public int updateCourses2(Courses2 courses2)
    {
        return courses2Mapper.updateCourses2(courses2);
    }

    /**
     * 批量删除成绩表2
     * 
     * @param courseIds 需要删除的成绩表2主键
     * @return 结果
     */
    @Override
    public int deleteCourses2ByCourseIds(Long[] courseIds)
    {
        return courses2Mapper.deleteCourses2ByCourseIds(courseIds);
    }

    /**
     * 删除成绩表2信息
     * 
     * @param courseId 成绩表2主键
     * @return 结果
     */
    @Override
    public int deleteCourses2ByCourseId(Long courseId)
    {
        return courses2Mapper.deleteCourses2ByCourseId(courseId);
    }
}
